/**
 * 电影模块
 */

 import base from '@/plugins/baseURL'; // 导入接口域名列表
 import axios from '@/plugins/http'; // 导入http中创建的axios实例
 import qs from 'qs'; // 根据
 
 const actor = {
     // 创建Permission
     actorList(params) {
         return axios.get(`${base.dev}/Actor/actorList`, {
             params:params
         });
     },
 
     actorAdd(formData){
         let config = {
            headers: {
                "Content-Type": "multipart/form-data"
            }
         }
         return axios.post(`${base.dev}/Actor/actorAdd`, formData,config);
 
     },
     updateActor(formData){
        let config = {
            headers: {
                "Content-Type": "multipart/form-data"
            }
         }


         return axios.post(`${base.dev}/Actor/updateActor`, formData,config);
     },
     deleteActor(id){
         let data = {
             id:id
         }
         console.log(id)//610
         console.log(data)//id:610
         console.log(qs.stringify(data))  //id=610
 
         
         return axios.post(`${base.dev}/Actor/deleteActor/`,qs.stringify(data));
     }
     }
 
 
 
 
 
 
 export default actor;